<h3>Post a comment</h3>
<?php if ($sf_user->isAuthenticated()) : ?>
    <a name="comment_form"></a>
    <div style="width:520px;margin:0px auto;">
    <form action="<?php echo url_for('comment/comment') ?>" method="POST" enctype="multipart/form-data">
      <table id="comment_form">
        <tfoot>
          <tr>
            <td colspan="2" style="text-align:right;">
              <input type="submit" value="<?php echo __('Send comment') ?>" />
            </td>
          </tr>
        </tfoot>
        <tbody>
          <?php echo $form['comment'] ?>
          <?php echo $form['_csrf_token'] ?>
          <input type="hidden" name="replay_comment[replay_id]" id="replay_comment_replay_id" value="<?php echo $replay->getId() ?>">
        </tbody>
      </table>
    </form>
    </div>
<?php else: ?>
 <?php echo __('You need to <a href="%s">log in</a> to comment.', array('%s' => url_for('@sf_guard_signin'))) ?>
<?php endif; ?>